import { array } from 'vue-types'

import type { ICreateDictTypeReq } from '@/apis'

import type DictTypeDialog from './DictTypeDialog'

export const dictTypeDialogProps = () => ({
  statusOptions: array<OptionItem>().def([])
})

export const formData = (): ICreateDictTypeReq => ({
  dictName: '',
  dictType: '',
  status: '0',
  remark: ''
})

export type IFormData = ReturnType<typeof formData>
export type DictTypeDialogRef = InstanceType<typeof DictTypeDialog>
